
// 渲染数据
$(function () {
    initEvent();
});

function initEvent() { 
    $("#sendOpenCode").off('click').on('click', function () {
        openAccount();
    });
}

//点击提交弹出遮罩层
function openAccount() {
    var smscode = $('#mechanism').val();
    var datas = {
        interface:'fund@open',      
        smscode:smscode,
    };
    common.ajax({
        data: datas,
        success: function (data) {
            if(data.status == '2000'){
                location.href = data.result.url;
            } else if (data.status == '5000') {
                falert(data.msg);
            }
        }
    });
}